projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed25153
)
GtkEntry: plug a small memleak
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Oct 2014 01:48:11 +0000
(21:48 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Oct 2014 01:48:11 +0000
(21:48 -0400)
GtkEntry was leaking a pango attribute list, if one was set.
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index ff30d16da631319d1bb0f2f516a719ee7f92f3a6..21d618e4f940183a8041647234b9c4877a5e28a5 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-3034,6
+3034,9
@@
gtk_entry_finalize (GObject *object)
if (priv->tabs)
pango_tab_array_free (priv->tabs);
+ if (priv->attrs)
+ pango_attr_list_unref (priv->attrs);
+
G_OBJECT_CLASS (gtk_entry_parent_class)->finalize (object);
}